package com.lvmama.pangolin.lmm.service;

import java.util.List;

import com.lvmama.pangolin.entity.CommodityConditionVO;
import com.lvmama.pangolin.entity.lmm.LMMTicketCommodity;


public interface LMMTicketCommodityService
{

	int deleteByPrimaryKey(String id,String commodityId);
	
	int deleteByProdId(String productId);

	int insert(LMMTicketCommodity record);

	int insertSelective(LMMTicketCommodity record);

	LMMTicketCommodity selectByPrimaryKey(String id,String commodityId);

	List<LMMTicketCommodity> selectByProdId(CommodityConditionVO co);
	List<LMMTicketCommodity> selectByProdIdAll(CommodityConditionVO co);
	LMMTicketCommodity selectByProdCommId(String productId,String commodityId);

	int updateByPrimaryKeySelective(LMMTicketCommodity record);

	int updateByProdIdSelective(LMMTicketCommodity record);

	int updateByPrimaryKey(LMMTicketCommodity record);
	public void setAsLowest(String product_id,String commodity_id);
	public void deleteLowest(String productId);
	public String selectCommodityId(String productId);
	
	public List<LMMTicketCommodity> getActiveCommodity(String productId);
	
}
